#include"head.h"
int delete_user(int id,MYSQL*db){
char query[256];
     snprintf(query, sizeof(query),
 "UPDATE users SET isDelete = %d WHERE id = %d",1,id  );

      if (mysql_query(db, query)) {
          fprintf(stderr, "查询失败: %s\n", mysql_error(db));
          return -1;
     }

MYSQL_RES*     result = mysql_store_result(db);
      if (result == NULL) {
          fprintf(stderr, "存储结果失败: %s\n", mysql_error(db));
   return -1;
      }


return 1;

}

